# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'mainformkfwEHZ.ui'
##
## Created by: Qt User Interface Compiler version 6.7.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
    QFont, QFontDatabase, QGradient, QIcon,
    QImage, QKeySequence, QLinearGradient, QPainter,
    QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QGridLayout,
    QHeaderView, QLabel, QLineEdit, QListWidget,
    QListWidgetItem, QPlainTextEdit, QPushButton, QSizePolicy,
    QSpacerItem, QTabWidget, QTableView, QWidget)

class Ui_Form(object):
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(320, 240)
        font = QFont()
        font.setFamilies([u"Cascadia Code"])
        Form.setFont(font)
        Form.setWindowTitle(u"SNOW")
        icon = QIcon()
        icon.addFile(u"snow-logo.png", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
        Form.setWindowIcon(icon)
        self.gridLayout_3 = QGridLayout(Form)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.tabWidget = QTabWidget(Form)
        self.tabWidget.setObjectName(u"tabWidget")
        self.tabWidget.setEnabled(True)
        self.tabConfig = QWidget()
        self.tabConfig.setObjectName(u"tabConfig")
        self.gridLayout_5 = QGridLayout(self.tabConfig)
        self.gridLayout_5.setObjectName(u"gridLayout_5")
        self.listWidgetConfig = QListWidget(self.tabConfig)
        self.listWidgetConfig.setObjectName(u"listWidgetConfig")

        self.gridLayout_5.addWidget(self.listWidgetConfig, 0, 0, 1, 3)

        self.checkBoxConfig = QCheckBox(self.tabConfig)
        self.checkBoxConfig.setObjectName(u"checkBoxConfig")
        self.checkBoxConfig.setText(u"Setup")

        self.gridLayout_5.addWidget(self.checkBoxConfig, 1, 2, 1, 1)

        self.labelConfig = QLabel(self.tabConfig)
        self.labelConfig.setObjectName(u"labelConfig")
        self.labelConfig.setText(u"<html><head/><body><p><br/></p></body></html>")

        self.gridLayout_5.addWidget(self.labelConfig, 1, 0, 1, 1)

        self.horizontalSpacerConfig = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.gridLayout_5.addItem(self.horizontalSpacerConfig, 1, 1, 1, 1)

        self.tabWidget.addTab(self.tabConfig, "")
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabConfig), u"Config")
        self.tabOnline = QWidget()
        self.tabOnline.setObjectName(u"tabOnline")
        self.tabOnline.setEnabled(False)
        self.gridLayout = QGridLayout(self.tabOnline)
        self.gridLayout.setObjectName(u"gridLayout")
        self.labelHost = QLabel(self.tabOnline)
        self.labelHost.setObjectName(u"labelHost")
        self.labelHost.setText(u"IPv4 Address:")

        self.gridLayout.addWidget(self.labelHost, 0, 0, 1, 2)

        self.labelHWV = QLabel(self.tabOnline)
        self.labelHWV.setObjectName(u"labelHWV")
        self.labelHWV.setText(u"HWVersion:")
        self.labelHWV.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.gridLayout.addWidget(self.labelHWV, 0, 2, 1, 1)

        self.lineEditHost = QLineEdit(self.tabOnline)
        self.lineEditHost.setObjectName(u"lineEditHost")
        self.lineEditHost.setInputMask(u"")
        self.lineEditHost.setText(u"127.0.0.1")
        self.lineEditHost.setMaxLength(15)
        self.lineEditHost.setClearButtonEnabled(True)

        self.gridLayout.addWidget(self.lineEditHost, 1, 0, 1, 2)

        self.comboBoxHWV = QComboBox(self.tabOnline)
        self.comboBoxHWV.setObjectName(u"comboBoxHWV")
        self.comboBoxHWV.setEditable(True)
        self.comboBoxHWV.setCurrentText(u"")

        self.gridLayout.addWidget(self.comboBoxHWV, 1, 2, 1, 1)

        self.labelPort = QLabel(self.tabOnline)
        self.labelPort.setObjectName(u"labelPort")
        self.labelPort.setText(u"Port:")

        self.gridLayout.addWidget(self.labelPort, 2, 0, 1, 1)

        self.lineEditPort = QLineEdit(self.tabOnline)
        self.lineEditPort.setObjectName(u"lineEditPort")
        self.lineEditPort.setInputMask(u"")
        self.lineEditPort.setText(u"9801")
        self.lineEditPort.setMaxLength(5)
        self.lineEditPort.setClearButtonEnabled(True)

        self.gridLayout.addWidget(self.lineEditPort, 2, 1, 1, 1)

        self.plainTextEditLog = QPlainTextEdit(self.tabOnline)
        self.plainTextEditLog.setObjectName(u"plainTextEditLog")
        self.plainTextEditLog.setUndoRedoEnabled(False)
        self.plainTextEditLog.setReadOnly(True)
        self.plainTextEditLog.setPlainText(u"")
        self.plainTextEditLog.setTextInteractionFlags(Qt.TextInteractionFlag.TextSelectableByMouse)

        self.gridLayout.addWidget(self.plainTextEditLog, 3, 0, 1, 3)

        self.checkBoxConnect = QCheckBox(self.tabOnline)
        self.checkBoxConnect.setObjectName(u"checkBoxConnect")
        self.checkBoxConnect.setText(u"Connect")

        self.gridLayout.addWidget(self.checkBoxConnect, 2, 2, 1, 1)

        self.tabWidget.addTab(self.tabOnline, "")
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabOnline), u"Online")
        self.tabOffline = QWidget()
        self.tabOffline.setObjectName(u"tabOffline")
        self.tabOffline.setEnabled(False)
        self.gridLayout_2 = QGridLayout(self.tabOffline)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.labelHWV0 = QLabel(self.tabOffline)
        self.labelHWV0.setObjectName(u"labelHWV0")
        self.labelHWV0.setText(u"HWVersion:")
        self.labelHWV0.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.gridLayout_2.addWidget(self.labelHWV0, 0, 0, 1, 2)

        self.labelMAC0 = QLabel(self.tabOffline)
        self.labelMAC0.setObjectName(u"labelMAC0")
        self.labelMAC0.setText(u"1st Mac Address:")
        self.labelMAC0.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignVCenter)

        self.gridLayout_2.addWidget(self.labelMAC0, 0, 2, 1, 1)

        self.comboBoxHWV0 = QComboBox(self.tabOffline)
        self.comboBoxHWV0.setObjectName(u"comboBoxHWV0")
        self.comboBoxHWV0.setEditable(True)
        self.comboBoxHWV0.setCurrentText(u"")
        self.comboBoxHWV0.setPlaceholderText(u"")

        self.gridLayout_2.addWidget(self.comboBoxHWV0, 1, 0, 1, 2)

        self.lineEditMAC0 = QLineEdit(self.tabOffline)
        self.lineEditMAC0.setObjectName(u"lineEditMAC0")
        self.lineEditMAC0.setEnabled(False)
        self.lineEditMAC0.setInputMask(u"HH:HH:HH:HH:HH:HH")
        self.lineEditMAC0.setClearButtonEnabled(True)

        self.gridLayout_2.addWidget(self.lineEditMAC0, 1, 2, 1, 2)

        self.pushButtonRefresh = QPushButton(self.tabOffline)
        self.pushButtonRefresh.setObjectName(u"pushButtonRefresh")
        self.pushButtonRefresh.setText(u"")
        icon1 = QIcon(QIcon.fromTheme(u"view-refresh"))
        self.pushButtonRefresh.setIcon(icon1)

        self.gridLayout_2.addWidget(self.pushButtonRefresh, 2, 0, 1, 1)

        self.labelSN0 = QLabel(self.tabOffline)
        self.labelSN0.setObjectName(u"labelSN0")
        self.labelSN0.setText(u"1st SN:")
        self.labelSN0.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)

        self.gridLayout_2.addWidget(self.labelSN0, 2, 1, 1, 1)

        self.lineEditSN0 = QLineEdit(self.tabOffline)
        self.lineEditSN0.setObjectName(u"lineEditSN0")
        self.lineEditSN0.setInputMask(u"")
        self.lineEditSN0.setText(u"")
        self.lineEditSN0.setClearButtonEnabled(True)

        self.gridLayout_2.addWidget(self.lineEditSN0, 2, 2, 1, 1)

        self.pushButtonWrite = QPushButton(self.tabOffline)
        self.pushButtonWrite.setObjectName(u"pushButtonWrite")
        self.pushButtonWrite.setText(u"")
        icon2 = QIcon(QIcon.fromTheme(u"mail-message-new"))
        self.pushButtonWrite.setIcon(icon2)

        self.gridLayout_2.addWidget(self.pushButtonWrite, 2, 3, 1, 1)

        self.tableViewComports = QTableView(self.tabOffline)
        self.tableViewComports.setObjectName(u"tableViewComports")
        self.tableViewComports.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)
        self.tableViewComports.horizontalHeader().setVisible(False)
        self.tableViewComports.horizontalHeader().setDefaultSectionSize(90)
        self.tableViewComports.verticalHeader().setVisible(False)

        self.gridLayout_2.addWidget(self.tableViewComports, 3, 0, 1, 4)

        self.tabWidget.addTab(self.tabOffline, "")
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabOffline), u"Offline")
        self.tabAbout = QWidget()
        self.tabAbout.setObjectName(u"tabAbout")
        self.gridLayout_4 = QGridLayout(self.tabAbout)
        self.gridLayout_4.setObjectName(u"gridLayout_4")
        self.labelAbout1 = QLabel(self.tabAbout)
        self.labelAbout1.setObjectName(u"labelAbout1")
        self.labelAbout1.setText(u"<html><head/><body><p align=\"center\"><span style=\" font-weight:700;\">Serial Number Online(Offline) Writer</span></p></body></html>")

        self.gridLayout_4.addWidget(self.labelAbout1, 0, 0, 1, 1)

        self.labelAbout2 = QLabel(self.tabAbout)
        self.labelAbout2.setObjectName(u"labelAbout2")
        self.labelAbout2.setText(u"")
        self.labelAbout2.setPixmap(QPixmap(u"snow-logo.png"))
        self.labelAbout2.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.gridLayout_4.addWidget(self.labelAbout2, 1, 0, 1, 1)

        self.labelAbout3 = QLabel(self.tabAbout)
        self.labelAbout3.setObjectName(u"labelAbout3")
        self.labelAbout3.setText(u"<html><head/><body><p align=\"center\"><br/><span style=\" font-style:italic;\">Author: Sheng Guoliang</span></p><p align=\"center\"><span style=\" font-style:italic;\">E-mail: shengguoliang@sinognss.com</span></p><p align=\"center\">2025\u00a9ALL RIGHTS RESERVED.</p></body></html>")

        self.gridLayout_4.addWidget(self.labelAbout3, 2, 0, 1, 1)

        self.tabWidget.addTab(self.tabAbout, "")
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabAbout), u"About")

        self.gridLayout_3.addWidget(self.tabWidget, 0, 0, 1, 1)

        QWidget.setTabOrder(self.tabWidget, self.listWidgetConfig)
        QWidget.setTabOrder(self.listWidgetConfig, self.checkBoxConfig)
        QWidget.setTabOrder(self.checkBoxConfig, self.lineEditHost)
        QWidget.setTabOrder(self.lineEditHost, self.lineEditPort)
        QWidget.setTabOrder(self.lineEditPort, self.comboBoxHWV)
        QWidget.setTabOrder(self.comboBoxHWV, self.checkBoxConnect)
        QWidget.setTabOrder(self.checkBoxConnect, self.plainTextEditLog)
        QWidget.setTabOrder(self.plainTextEditLog, self.comboBoxHWV0)
        QWidget.setTabOrder(self.comboBoxHWV0, self.lineEditSN0)
        QWidget.setTabOrder(self.lineEditSN0, self.lineEditMAC0)
        QWidget.setTabOrder(self.lineEditMAC0, self.pushButtonRefresh)
        QWidget.setTabOrder(self.pushButtonRefresh, self.pushButtonWrite)
        QWidget.setTabOrder(self.pushButtonWrite, self.tableViewComports)

        self.retranslateUi(Form)

        self.tabWidget.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(Form)
    # setupUi

    def retranslateUi(self, Form):
        pass
    # retranslateUi

